package com.kingsoft.dc.khaos.module.spark.constants

/**
  * 常量配置
  *
  * @author gaosong3@kingsoft.com
  * @date 2019/2/19
  */
object SchedulerConstants {

  /**
    * 调度相关配置常量
    */
  //作业类型 eg:syncTask dataProcess
  final val JOB_TYPE:String= "type"
  final val SYNCTASK:String= "syncTask"
  final val DATAPROCESS:String= "dataProcess"

  final val TEST:String= "test"
  final val ONLINE:String= "online"



  final val SOURCE_TAG = "source_column"
  final val TARGET_TAG = "target_column"

  final val SYNC_SOURCE = "source"
  final val SYNC_OPERATOR = "operator"
  final val SYNC_SINK = "sink"
  final val FLOW_NAME = "flow.name"
  final val FLOW_ID = "flow.id"

  final val COS_FILE_PATH = "cos_file_path"
  final val KS3_FILE_PATH = "ks3_file_path"
  final val HDFS_FILE_PATH = "hdfs_file_path"
  final val BIZ_DATE = "job.biz.date"
  final val BIZ_TIME = "job.biz.time"
  final val BATCH_NO = "job.batch.no"
  final val EXEC_TRIED_TIMES = "job.exec.tried.times"
  final val SUBMIT_TIME = "job.submit.time"
  final val JOB_INSTANCE_ID = "job.inst.id"
  final val JOB_ID = "job.id"
  final val JOB_NAME = "job.name"
  final val RESOURCE_CONF_PATH = "resource.conf.path"
  final val PROJECT_ID = "project.id"
  final val PROJECT_NAME = "project.name"
  final val TENANT_ID = "dts.tenant.id"
  final val RUN_ENV = "job.run.env"
  final val DATA_DEV_ID = "data.dev.id"

  final val SPARK_SQL = "sparkSql"
  final val SHOULD_PROXY = "dts.should.proxy"
  final val PROXY_USER = "proxy.user"
  final val PROXY_KRB5_CONF = "proxy.krb5.conf"
  final val CLUSTER_NAMESPACE =  "cluster.namespace"
  final val RESOURCE_CONF_DIR = "resource.conf.dir"
  final val DTS_RESOURCE_GROUP = "dts.resource.group"

  final val PROXY_KEYTAB_LOCATION = "proxy.keytab.location"
  final val TENANT_SERVER_URL = "privilege.url" //租户相关信息查询服务


  final val META_RIGHT_QUERY_URL_KEY = "right-query-service_right-query";
  final val META_QUERY_URL_KEY = "metadata-query-service_meta-query";
  final val META_MG_SERVICE_META_MG = "metadata-mg-service_meta-mg"
  final val CHECK_RULE_QUERY_URL_KEY = "data-quality-rule-configure-service_quality-rule-configure";
  final val QUALITY_ANALYSIS_QUERY_URL_KEY = "data-quality-analysis-service_quality-analysis";

  final val AUTH_SERVER_KEY = "auth-server.url"
  final val TECHCHECKTAG = "tech.check.tag" //技术检核标志 “true”、"false"

  final val OPS_SLA_REPORT_URL = "project.ops-sla-report.url" //上报指标-运维中心-url

    //企业版 mysql/oracle区分元数据来源:数据管理(dataManagement),dbserver(dbserver)
    final val META_ORIGIN = "meta_origin"


}
